﻿using Md.Api.Model.Manage.SysMenu.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysMenu;
/// <summary>
/// 通过菜单编号获取系统菜单信息服务
/// </summary>
public class GetSysMenuByMenuIdService : ApiBase<RequestGetSysMenuByMenuIdModel>
{
    /// <summary>
    /// 系统菜单仓储
    /// </summary>
    public SysMenuRep sysMenuRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysMenuRep.GetSysMenuByMenuId(Parameter.MenuId);

        Result.Data = res;
    }
}

